

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="/WEB-INF/template/basicTemplate.xhtml">

	<ui:define name="content">
		<f:metadata>
			<f:viewParam name="uname" value="#{loginBean.employeeDTO.username}" />
			<f:viewParam name="firstname" value="#{loginBean.firstname}" />
		</f:metadata>
		<head>
<title><h:outputText value="#{msg.employees}" /></title>
		</head>
		<br />
		<f:event listener="#{loginBean.verify()}" type="preRenderView"></f:event>

		<h:form>

			<div align="center">
				<h:commandButton value="#{msg.ticket}"
					action="#{loginBean.biletDeVoie()}" styleClass="button" />
				<h:commandButton value="#{msg.questionnaires}"
					action="chestionare.xhtml" styleClass="button" />
				<h:commandButton value="#{msg.library}" action="biblioteca.xhtml"
					styleClass="button" />
				<br></br>
				<h:panelGrid columns="2" styleClass="inner-table login">
					<h:outputText value="#{msg.welcome}" />
					<h:outputText value="#{loginBean.firstname}" />
					<h:outputText value="#{msg.username}:"></h:outputText>
					<h:outputText value="#{loginBean.uname}"></h:outputText>
					<h:outputText value="#{msg.lastname}:"></h:outputText>
					<h:outputText value="#{loginBean.lastname}"></h:outputText>
					<h:outputText value="#{msg.birthdate}:"></h:outputText>
					<h:outputText value="#{loginBean.dateofbirth}"></h:outputText>
					<h:outputText value="#{msg.email}:"></h:outputText>
					<h:outputText value="#{loginBean.email}"></h:outputText>
					<h:outputText value="#{msg.salary}:"></h:outputText>
					<h:outputText value="#{loginBean.salar}"></h:outputText>
					<h:outputText value="#{msg.areamanager}:"></h:outputText>
					<h:outputText value="#{loginBean.areaManager}"></h:outputText>
					<h:outputText value="#{msg.contactperson}:"></h:outputText>
					<h:outputText value="#{loginBean.contactpersonde}"></h:outputText>
					<h:outputText value="#{msg.teamLeader}:"></h:outputText>
					<h:outputText value="#{loginBean.teamleader}"></h:outputText>

				</h:panelGrid>
				<br></br>


				<h:commandButton value="Log out" styleClass="button"
					action="#{loginBean.logOut()}" />
				<br></br>

				<h:messages styleClass="errorMessage"></h:messages>
			</div>

		</h:form>
	</ui:define>

</ui:composition>

</html>






